package com.gitease.quickhub.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.OffsetDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Commit {
    private String sha;
    private String message;
    private Author author;
    private Author committer;
    private OffsetDateTime date;
    private String url;
    private String htmlUrl;
    
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Author {
        private String name;
        private String email;
        private OffsetDateTime date;
    }
}